import 'package:flutter/cupertino.dart';
import '../radio-group/Radio.dart';
class FormItem extends Widget{

  late double? rowSpacing;

  late String type;

  late String? value;

  late String? labelText;

  late String? filedName;

  late Widget? icon;

  late Map<String, List<dynamic>>? rules;

  late void Function(dynamic value)? onChange;

  late VoidCallback? onClick;

  late double? height;

  late double? fontSize;

  late bool? checked;

  late FocusNode? focusNode;

  late String? placeholder;

  late void Function()? iconOnTap;

  late BuildContext? context;

  late String? title;

  late bool? enabled;

  late bool? readOnly;

  late String? initialValue;

  late double? labelWidth;

  late AlignmentGeometry? labelAlignment;

  late List<RadioItem>? radioItem;

  late Function(String value)? onEntry;

  late bool? validate = true;

  FormItem({
    this.rowSpacing,
    required this.type,
    this.labelText,
    this.icon,
    this.value,
    this.rules,
    this.onChange,
    this.onClick,
    this.height,
    this.fontSize,
    this.checked,
    this.filedName,
    this.focusNode,
    this.placeholder,
    this.iconOnTap,
    this.context,
    this.title,
    this.enabled,
    this.initialValue,
    this.readOnly,
    this.labelWidth,
    this.labelAlignment,
    this.radioItem,
    this.onEntry,
    this.validate = true
  }) :
      super();

  @override
  Element createElement() {
    // TODO: implement createElement
    throw UnimplementedError();
  }

}